﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using RESTServicioTecnico.Dominio;
using System.ServiceModel.Web;

namespace RESTServicioTecnico
{
    [ServiceContract]
    public interface IOrdenes
    {
        [OperationContract]
        [WebInvoke(Method = "POST", UriTemplate = "Ordenes", ResponseFormat = WebMessageFormat.Json)]
        OrdenServicio CrearOrdenServicio(OrdenServicio OrdenServicioACrear);

        [OperationContract]
        [WebInvoke(Method = "GET", UriTemplate = "Ordenes/{codigo}", ResponseFormat = WebMessageFormat.Json)]
        OrdenServicio ObtenerOrdenServicio(string codigo);

        [OperationContract]
        //TODO:
        OrdenServicio ModificarOrdenServicio(OrdenServicio OrdenServicioAModificar);

        [OperationContract]
        //TODO:
        void EliminarOrdenServicio(string codigo);

        [OperationContract]
        //TODO:
        List<OrdenServicio> ListarOrdenServicio();

    }
}
